-- GENERATED SPELL FOR [Greymist Oracle] --


function spell0_2207(pUnit, Event) --@Healing Wave,Heal--
pUnit:FullCastSpellOnTarget(913,pUnit)
pUnit:RegisterEvent('Sorts_2207', 3000, 1)
end

function spell1_2207(pUnit, Event) --@Lightning Bolt,n/a--
pUnit:FullCastSpellOnTarget(9532,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2207', 3000, 1)
end

function Sorts_2207(pUnit, Event)
local choix_sorts_2207 = math.random(0, 1)
if choix_sorts_2207 == 0 then
pUnit:RegisterEvent('spell0_2207', 1, 1)
end
if choix_sorts_2207 == 1 then
pUnit:RegisterEvent('spell1_2207', 1, 1)
end
end

function mob2207_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2207', math.random(1500, 3000), 1)
end

function mob2207_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2207_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2207_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2207, 1, 'mob2207_Action')
RegisterUnitEvent(2207, 2, 'mob2207_Leave')
RegisterUnitEvent(2207, 3, 'mob2207_Kill')
RegisterUnitEvent(2207, 4, 'mob2207_Die')
